<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=utf-8" %>
<%@ page import="javax.servlet.jsp.jstl.core.Config, java.util.*" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="app" uri="/WEB-INF/tlds/app.tld" %>
<%@ taglib uri="http://www.opensymphony.com/oscache" prefix="cache" %>

<html:html xhtml="true" lang="true">
<head>
<meta name="decorator" content="general">
<title>Home</title>
<link href="${pageContext.request.contextPath}/css/base-200606.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src='<c:out value="${pageContext.request.contextPath}/js/dojo/dojo.js"/>'></script>
<script type="text/javascript">
dojo.require("dojo.widget.*");
dojo.require("dojo.widget.TabContainer");
dojo.require("dojo.widget.LinkPane");
dojo.require("dojo.widget.ContentPane");
</script>
<style>
.dojoTabPaneWrapper {
padding : 15px;
}
</style>
</head>

<body>

<cache:cache key="/index_body.jsp?locale=${sessionScope.locale}">
<c:set var="rootCategories" value="${app:getRootCategories(false)}" />
<div id="mainTabContainer" dojoType="TabContainer" doLayout="false" selectedChild="tab${rootCategories[0].id}">
    <c:forEach var="category" items="${rootCategories}">
        <c:url var="tabURL" value="/category.jsp">
            <c:param name="categoryId" value="${category.id}"/>
        </c:url>
        <div dojoType="ContentPane" id="tab${category.id}" adjustPaths="false" preload="true" href='<c:out value="${tabURL}"/>' refreshOnShow="true" onDownloadStart="arguments[0].preventDefault()"
             label='<c:out value="${category.name}"/>'></div>
    </c:forEach>
</div>
</cache:cache>

</body>
</html:html>



